package com.example.dubbo.account.core.dao;

import com.example.dubbo.account.core.dao.data.AccountDO;
import org.apache.ibatis.annotations.Param;

public interface AccountMapper {

    int insert(AccountDO accountDO);

    AccountDO getById(Long id);

    AccountDO getByUserId(@Param("userId") String userId);

    int deleteById(Long id);

    int debitById(@Param("id") Long id, @Param("money") int money);

    int updateById(AccountDO accountDO);
}
